%base-btn {
    color: #fff !important;
    border-radius: .3rem;
    padding: .5rem .9rem;
    transition: background-color .5s;
}

%btn {
    @extend %base-btn;
    background-color: #6CACFF;
    transition: background-color .7s;

    // background-image: linear-gradient(to bottom right, #8DEBFF, #6CACFF);
    &:hover {
        // background-image: linear-gradient(to bottom right, #6CACFF, #8DEBFF);
        background-color: rgb(125, 177, 255);
    }

    &:active {
        background-color: #2d7ef8;
    }
}

%btn-danger {
    @extend %base-btn;
    background-color: #f56c6c;

    // background-image: linear-gradient(to bottom right, #8DEBFF, #6CACFF);
    &:hover {
        // background-image: linear-gradient(to bottom right, #6CACFF, #8DEBFF);
        background-color: #f57979;
    }

    &:active {
        background-color: #eb0404;
    }
}

%del-btn {
    @extend %base-btn;
    background-color: #FE1111;

    // background-image: linear-gradient(to bottom right, #8DEBFF, #6CACFF);
    &:hover {
        // background-image: linear-gradient(to bottom right, #6CACFF, #8DEBFF);
        background-color: #eb0404;
    }
}

//数据列表(<ul>)的占位符
%data-list {
    margin-top: 1.2rem;
    padding-top: .6rem;
    margin-bottom: .9rem;
    list-style: none;

    li {
        &:first-child {
            margin-top: 0;
            border-top: .1rem solid #c6c6c6;
        }

        border-bottom: .1rem solid #c6c6c6;
        height: 3.2rem;
        padding-left: .5rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 2;

        &:hover {
            background-color: rgba(240, 240, 240, .4);
        }

        p {
            span {
                width: 5rem;
                display: inline-block;
            }
        }
    }

    a {
        color: #676869;
        flex-grow: 2;
    }
}

%little-prompt {
    font-size: 1.2rem;
    color: #c6c6c6;
}

// table数据列表
%data-list-table {
    width: 97%;
    color: #495057;
    margin-top: 1.7rem;
    // table-layout: fixed;
    border-collapse: collapse;
    // box-shadow: 0 5px 2px -3px rgba(200, 200, 200, .2), 0 8px 5px 1px rgba(200, 200, 200, .14), 0 3px 7px 2px rgba(200, 200, 200, .12);

    tr {
        // border-bottom: .1rem solid #ebeef5;
        box-sizing: border-box;

        th {
            border: .1rem solid #ebeef5;
            border-bottom: 0;
        }
    }

    td {
        text-align: center;
        padding: 1.5rem 1.2rem;
        // border: .1rem solid #ebeef5;
        word-break: keep-all;
    }

    a {
        margin-right: .7rem;
    }

    .icofont-ui-edit {
        margin-right: 1.7rem
    }
}

// table数据列表带边框
%data-list-table-border {
    width: 97%;
    color: #495057;
    margin-top: 1.7rem;
    // table-layout: fixed;
    border-collapse: collapse;
    // box-shadow: 0 5px 2px -3px rgba(200, 200, 200, .2), 0 8px 5px 1px rgba(200, 200, 200, .14), 0 3px 7px 2px rgba(200, 200, 200, .12);

    tr {
        // border-bottom: .1rem solid #ebeef5;
        box-sizing: border-box;

        th {
            border: .1rem solid #ebeef5;
            border-bottom: 0;
        }
    }

    td {
        text-align: center;
        padding: 1.5rem 1.2rem;
        border: .1rem solid #ebeef5;
        word-break: keep-all;
    }

    a {
        margin-right: .7rem;
    }

    .icofont-ui-edit {
        margin-right: 1.7rem
    }
}

// 编辑用的table
%edit-table {
    $border-color: #c6c6c6;
    margin: 0 auto;
    border-collapse: collapse;
    width: 93%;

    input,
    select {
        width: 21rem;
        padding: .3rem .7rem;
        box-sizing: border-box;
    }

    tr {
        td {
            padding: 1rem 2rem;
            white-space: nowrap;

            &:first-child {
                text-align: right;
            }
        }
    }
}

%dialog-table {
    box-shadow: none !important;

    tr {
        &:hover {
            background-color: #fff !important;
        }
    }

    td {
        &:first-child {
            text-align: right;
        }

        &:last-child {
            text-align: left;
        }
    }

    input,
    select {
        width: 21rem;
    }
}

%scroll-bar-base {

    /* Track */
    &::-webkit-scrollbar-track {
        transition: all 1s ease-out;
        box-shadow: inset 0 0 5px #f6f6f6;
        background-color: inherit;
    }

    /* Handle */
    &::-webkit-scrollbar-thumb {
        @include compatible-style("",
            ("background-image": linear-gradient(to bottom right, #e6e6e6, #cecece),
            ));
        border-radius: 10px;
    }

    /* Handle on hover */
    &::-webkit-scrollbar-thumb:hover {
        @include compatible-style("",
            ("background-image": linear-gradient(to bottom right, #e6e6e6, #999),
            ));
    }
}

%scroll-bar-min {
    &::-webkit-scrollbar {
        width: .3rem;
        height: 100%;
    }

    @extend %scroll-bar-base;
}

%scroll-bar {
    &::-webkit-scrollbar {
        width: 1rem;
        height: 100%;
    }

    @extend %scroll-bar-base;
}